package com.gt.facebook.pojo;

import org.json.JSONObject;

public class Friend {

	private String id;
	private String name;
	private String picture;
	
	public Friend(JSONObject jObject) {
		if(jObject != null) {
			try {
				this.id = jObject.getString("id");
				this.picture = jObject.getJSONObject("picture").getJSONObject("data").getString("url");
				this.name = jObject.getString("name");
			} catch(Exception e) {
				e.printStackTrace();
			}
		}
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPicture() {
		return picture;
	}

	public void setPicture(String picture) {
		this.picture = picture;
	}

}
